| 16 |
| http://www.CubeCart.com |
= |
16 |
| http://www.CubeCart.com |
| 17 |
| UK Private Limited Company No. 5323904 |
|
17 |
| UK Private Limited Company No. 5323904 |
| 18 |
| ======================================== |
|
18 |
| ======================================== |
| 19 |
| Web: http://www.cubecart.com |
|
19 |
| Web: http://www.cubecart.com |
| 20 |
| Date: Tuesday, 14th March 2006 |
|
20 |
| Date: Tuesday, 14th March 2006 |
| 21 |
| Email: info (at) cubecart (dot) com |
|
21 |
| Email: info (at) cubecart (dot) com |
| 22 |
| License Type: CubeCart is NOT Open Source Software and Limitations Apply |
<> |
22 |
| License Type: CubeCart is NOT Open Source Software and Limitations Apply |
| 23 |
| Licence Info: http://www.cubecart.com/site/faq/license.php |
= |
23 |
| Licence Info: http://www.cubecart.com/site/faq/license.php |
| 24 |
+-------------------------------------------------------------------------- |
|
24 |
+-------------------------------------------------------------------------- |
| 25 |
| index.php |
|
25 |
| index.php |
| 26 |
| ======================================== |
|
26 |
| ======================================== |
| 27 |
| Configure JROX.COM Affiliate Manager |
|
27 |
| Configure JROX.COM Affiliate Manager |
| 28 |
+-------------------------------------------------------------------------- |
|
28 |
+-------------------------------------------------------------------------- |
| |
| 47 |
|
= |
47 |
|
| 48 |
if(isset($_POST['module'])){ |
|
48 |
if(isset($_POST['module'])){ |
| 49 |
include("../../status.php"); |
|
49 |
include("../../status.php"); |
| 50 |
include("../../../includes/functions.inc.php"); |
|
50 |
include("../../../includes/functions.inc.php"); |
| 51 |
$module = fetchDbConfig($_GET['folder']); |
|
51 |
$module = fetchDbConfig($_GET['folder']); |
| 52 |
$msg = writeDbConf($_POST['module'], $_GET['folder'], $module); |
|
52 |
$msg = writeDbConf($_POST['module'], $_GET['folder'], $module); |
| 53 |
|
<> |
53 |
|
| 54 |
} |
= |
54 |
} |
| 55 |
$module = fetchDbConfig($_GET['folder']); |
|
55 |
$module = fetchDbConfig($_GET['folder']); |
| 56 |
?> |
|
56 |
?> |
| 57 |
|
|
57 |
|
| 58 |
<p><a href="http://jam.jrox.com" target="_blank"><img src="logo.gif" alt="JROX.COM Affiliate Manager" border="0" title="" /></a></p> |
|
58 |
<p><a href="http://jam.jrox.com" target="_blank"><img src="logo.gif" alt="JROX.COM Affiliate Manager" border="0" title="" /></a></p> |
| 59 |
<?php |
<> |
59 |
<?php |
| 60 |
if(isset($msg)){ |
|
60 |
if(isset($msg)){ |
| 61 |
echo stripslashes($msg); |
|
61 |
echo stripslashes($msg); |
| 62 |
} |
|
62 |
} |
| 63 |
?> |
= |
63 |
?> |
| 64 |
<form action="<?php echo $module['URL']; ?>/affiliates/admin/" id="fx_admin_login_form" name="fx_admin_login_form" method="post" target="_blank"> |
<> |
64 |
<form action="<?php echo $module['URL']; ?>/admin/" id="fx_admin_login_form" name="fx_admin_login_form" method="post" target="_blank"> |
| 65 |
<table border="0" cellspacing="0" cellpadding="3" class="mainTable"> |
= |
65 |
<table border="0" cellspacing="0" cellpadding="3" class="mainTable"> |
| 66 |
<tr> |
|
66 |
<tr> |
| 67 |
<td colspan="2" class="tdTitle">Login to JAM (Opens in new window) </td> |
|
67 |
<td colspan="2" class="tdTitle">Login to JAM (Opens in new window) </td> |
| 68 |
</tr> |
|
68 |
</tr> |
| 69 |
<tr> |
|
69 |
<tr> |
| 70 |
<td align="left" class="tdText">Admin Username:</td> |
|
70 |
<td align="left" class="tdText">Admin Username:</td> |
| 117 |
<td class="tdText"><strong>Container Types</strong></td> |
= |
117 |
<td class="tdText"><strong>Container Types</strong></td> |
| 118 |
<td class="tdText"><strong>Weight Limit</strong></td> |
|
118 |
<td class="tdText"><strong>Weight Limit</strong></td> |
| 119 |
</tr> |
|
119 |
</tr> |
| 120 |
<tr> |
|
120 |
<tr> |
| 121 |
<td class="tdText">Express Mail </td> |
|
121 |
<td class="tdText">Express Mail </td> |
| 122 |
<td valign="top" class="tdText"> |
|
122 |
<td valign="top" class="tdText"> |
| 123 |
<select name="module[service_Express]"> |
<> |
123 |
<select name="module[serviceExpress]"> |
| 124 |
<option value="1" <?php if($module['service_Express']==1) echo "selected='selected'"; ?>>Enabled</option> |
|
124 |
<option value="1" <?php if($module['serviceExpress']==1) echo "selected='selected'"; ?>>Enabled</option> |
| 125 |
<option value="0" <?php if($module['service_Express']==0) echo "selected='selected'"; ?>>Disabled</option> |
|
125 |
<option value="0" <?php if($module['serviceExpress']==0) echo "selected='selected'"; ?>>Disabled</option> |
| 126 |
</select> </td> |
= |
126 |
</select> </td> |
| 127 |
<td valign="top" class="tdText"> |
|
127 |
<td valign="top" class="tdText"> |
| 128 |
<select name="module[expressSize]"> |
|
128 |
<select name="module[expressSize]"> |
| 129 |
<option value="REGULAR" <?php if($module['expressSize']=="REGULAR") echo "selected='selected'"; ?>>Regular</option> |
|
129 |
<option value="REGULAR" <?php if($module['expressSize']=="REGULAR") echo "selected='selected'"; ?>>Regular</option> |
| 130 |
<option value="LARGE" <?php if($module['expressSize']=="LARGE") echo "selected='selected'"; ?>>Large</option> |
|
130 |
<option value="LARGE" <?php if($module['expressSize']=="LARGE") echo "selected='selected'"; ?>>Large</option> |
| 131 |
</select> </td> |
|
131 |
</select> </td> |
| |
| 135 |
</select> </td> |
= |
135 |
</select> </td> |
| 136 |
<td valign="top" class="tdText">70 lbs.</td> |
|
136 |
<td valign="top" class="tdText">70 lbs.</td> |
| 137 |
</tr> |
|
137 |
</tr> |
| 138 |
<tr> |
|
138 |
<tr> |
| 139 |
<td class="tdText">First Class</td> |
|
139 |
<td class="tdText">First Class</td> |
| 140 |
<td valign="top" class="tdText"> |
|
140 |
<td valign="top" class="tdText"> |
| 141 |
<select name="module[service_FirstClass]"> |
<> |
141 |
<select name="module[serviceFirstClass]"> |
| 142 |
<option value="1" <?php if($module['service_FirstClass']==1) echo "selected='selected'"; ?>>Enabled</option> |
|
142 |
<option value="1" <?php if($module['serviceFirstClass']==1) echo "selected='selected'"; ?>>Enabled</option> |
| 143 |
<option value="0" <?php if($module['service_FirstClass']==0) echo "selected='selected'"; ?>>Disabled</option> |
|
143 |
<option value="0" <?php if($module['serviceFirstClass']==0) echo "selected='selected'"; ?>>Disabled</option> |
| 144 |
</select> </td> |
= |
144 |
</select> </td> |
| 145 |
<td valign="top" class="tdText"><select name="module[FirstClassSize]"> |
|
145 |
<td valign="top" class="tdText"><select name="module[FirstClassSize]"> |
| 146 |
<option value="REGULAR" <?php if($module['FirstClassSize']=="REGULAR") echo "selected='selected'"; ?>>Regular</option> |
|
146 |
<option value="REGULAR" <?php if($module['FirstClassSize']=="REGULAR") echo "selected='selected'"; ?>>Regular</option> |
| 147 |
<option value="LARGE" <?php if($module['FirstClassSize']=="LARGE") echo "selected='selected'"; ?>>Large</option> |
|
147 |
<option value="LARGE" <?php if($module['FirstClassSize']=="LARGE") echo "selected='selected'"; ?>>Large</option> |
| 148 |
</select></td> |
|
148 |
</select></td> |
| 149 |
<td valign="top" class="tdText">N/A</td> |
|
149 |
<td valign="top" class="tdText">N/A</td> |
| 150 |
<td valign="top" class="tdText">13 oz.</td> |
|
150 |
<td valign="top" class="tdText">13 oz.</td> |
| 151 |
</tr> |
|
151 |
</tr> |
| 152 |
<tr> |
|
152 |
<tr> |
| 153 |
<td class="tdText">Priority Mail </td> |
|
153 |
<td class="tdText">Priority Mail </td> |
| 154 |
<td valign="top" class="tdText"> |
|
154 |
<td valign="top" class="tdText"> |
| 155 |
<select name="module[service_Priority]"> |
<> |
155 |
<select name="module[servicePriority]"> |
| 156 |
<option value="1" <?php if($module['service_Priority']==1) echo "selected='selected'"; ?>>Enabled</option> |
|
156 |
<option value="1" <?php if($module['servicePriority']==1) echo "selected='selected'"; ?>>Enabled</option> |
| 157 |
<option value="0" <?php if($module['service_Priority']==0) echo "selected='selected'"; ?>>Disabled</option> |
|
157 |
<option value="0" <?php if($module['servicePriority']==0) echo "selected='selected'"; ?>>Disabled</option> |
| 158 |
</select> </td> |
= |
158 |
</select> </td> |
| 159 |
<td valign="top" class="tdText"><select name="module[prioritySize]"> |
|
159 |
<td valign="top" class="tdText"><select name="module[prioritySize]"> |
| 160 |
<option value="REGULAR" <?php if($module['prioritySize']=="REGULAR") echo "selected='selected'"; ?>>Regular</option> |
|
160 |
<option value="REGULAR" <?php if($module['prioritySize']=="REGULAR") echo "selected='selected'"; ?>>Regular</option> |
| 161 |
<option value="LARGE" <?php if($module['prioritySize']=="LARGE") echo "selected='selected'"; ?>>Large</option> |
|
161 |
<option value="LARGE" <?php if($module['prioritySize']=="LARGE") echo "selected='selected'"; ?>>Large</option> |
| 162 |
</select></td> |
|
162 |
</select></td> |
| 163 |
<td valign="top" class="tdText"><select name="module[priorityContainer]"> |
|
163 |
<td valign="top" class="tdText"><select name="module[priorityContainer]"> |
| |
| 166 |
</select> </td> |
= |
166 |
</select> </td> |
| 167 |
<td valign="top" class="tdText">70 lbs.</td> |
|
167 |
<td valign="top" class="tdText">70 lbs.</td> |
| 168 |
</tr> |
|
168 |
</tr> |
| 169 |
<tr> |
|
169 |
<tr> |
| 170 |
<td class="tdText">Parcel Post (Machinable) </td> |
|
170 |
<td class="tdText">Parcel Post (Machinable) </td> |
| 171 |
<td valign="top" class="tdText"> |
|
171 |
<td valign="top" class="tdText"> |
| 172 |
<select name="module[service_Parcel-M]"> |
<> |
172 |
<select name="module[serviceParcelM]"> |
| 173 |
<option value="1" <?php if($module['service_Parcel-M']==1) echo "selected='selected'"; ?>>Enabled</option> |
|
173 |
<option value="1" <?php if($module['serviceParcelM']==1) echo "selected='selected'"; ?>>Enabled</option> |
| 174 |
<option value="0" <?php if($module['service_Parcel-M']==0) echo "selected='selected'"; ?>>Disabled</option> |
|
174 |
<option value="0" <?php if($module['serviceParcelM']==0) echo "selected='selected'"; ?>>Disabled</option> |
| 175 |
</select> </td> |
= |
175 |
</select> </td> |
| 176 |
<td valign="top" class="tdText"><select name="module[parcel-MSize]"> |
<> |
176 |
<td valign="top" class="tdText"><select name="module[parcelMSize]"> |
| 177 |
<option value="REGULAR" <?php if($module['parcel-MSize']=="REGULAR") echo "selected='selected'"; ?>>Regular</option> |
|
177 |
<option value="REGULAR" <?php if($module['parcelMSize']=="REGULAR") echo "selected='selected'"; ?>>Regular</option> |
| 178 |
<option value="LARGE" <?php if($module['parcel-MSize']=="LARGE") echo "selected='selected'"; ?>>Large</option> |
|
178 |
<option value="LARGE" <?php if($module['parcelMSize']=="LARGE") echo "selected='selected'"; ?>>Large</option> |
| 179 |
<option value="OVERSIZE" <?php if($module['parcel-MSize']=="OVERSIZE") echo "selected='selected'"; ?>>Oversize</option> |
|
179 |
<option value="OVERSIZE" <?php if($module['parcelMSize']=="OVERSIZE") echo "selected='selected'"; ?>>Oversize</option> |
| 180 |
</select></td> |
= |
180 |
</select></td> |
| 181 |
<td valign="top" class="tdText">N/A</td> |
|
181 |
<td valign="top" class="tdText">N/A</td> |
| 182 |
<td valign="top" class="tdText">70 lbs.</td> |
|
182 |
<td valign="top" class="tdText">70 lbs.</td> |
| 183 |
</tr> |
|
183 |
</tr> |
| 184 |
<tr> |
|
184 |
<tr> |
| 185 |
<td class="tdText">Parcel Post (Non-Machinable) </td> |
|
185 |
<td class="tdText">Parcel Post (Non-Machinable) </td> |
| 186 |
<td valign="top" class="tdText"><select name="module[service_Parcel-NM]"> |
<> |
186 |
<td valign="top" class="tdText"><select name="module[serviceParcelNM]"> |
| 187 |
<option value="1" <?php if($module['service_Parcel-NM']==1) echo "selected='selected'"; ?>>Enabled</option> |
|
187 |
<option value="1" <?php if($module['serviceParcelNM']==1) echo "selected='selected'"; ?>>Enabled</option> |
| 188 |
<option value="0" <?php if($module['service_Parcel-NM']==0) echo "selected='selected'"; ?>>Disabled</option> |
|
188 |
<option value="0" <?php if($module['serviceParcelNM']==0) echo "selected='selected'"; ?>>Disabled</option> |
| 189 |
</select></td> |
= |
189 |
</select></td> |
| 190 |
<td valign="top" class="tdText"><select name="module[parcel-NMSize]"> |
<> |
190 |
<td valign="top" class="tdText"><select name="module[parcelNMSize]"> |
| 191 |
<option value="REGULAR" <?php if($module['parcel-NMSize']=="REGULAR") echo "selected='selected'"; ?>>Regular</option> |
|
191 |
<option value="REGULAR" <?php if($module['parcelNMSize']=="REGULAR") echo "selected='selected'"; ?>>Regular</option> |
| 192 |
<option value="LARGE" <?php if($module['parcel-NMSize']=="LARGE") echo "selected='selected'"; ?>>Large</option> |
|
192 |
<option value="LARGE" <?php if($module['parcelNMSize']=="LARGE") echo "selected='selected'"; ?>>Large</option> |
| 193 |
<option value="OVERSIZE" <?php if($module['parcel-NMSize']=="OVERSIZE") echo "selected='selected'"; ?>>Oversize</option> |
|
193 |
<option value="OVERSIZE" <?php if($module['parcelNMSize']=="OVERSIZE") echo "selected='selected'"; ?>>Oversize</option> |
| 194 |
</select></td> |
= |
194 |
</select></td> |
| 195 |
<td valign="top" class="tdText">N/A</td> |
|
195 |
<td valign="top" class="tdText">N/A</td> |
| 196 |
<td valign="top" class="tdText">70 lbs.</td> |
|
196 |
<td valign="top" class="tdText">70 lbs.</td> |
| 197 |
</tr> |
|
197 |
</tr> |
| 198 |
<tr> |
|
198 |
<tr> |
| 199 |
<td class="tdText">BPM (Bound Printed Matter)</td> |
|
199 |
<td class="tdText">BPM (Bound Printed Matter)</td> |
| 200 |
<td valign="top" class="tdText"> |
|
200 |
<td valign="top" class="tdText"> |
| 201 |
<select name="module[service_BPM]"> |
<> |
201 |
<select name="module[serviceBPM]"> |
| 202 |
<option value="1" <?php if($module['service_BPM']==1) echo "selected='selected'"; ?>>Enabled</option> |
|
202 |
<option value="1" <?php if($module['serviceBPM']==1) echo "selected='selected'"; ?>>Enabled</option> |
| 203 |
<option value="0" <?php if($module['service_BPM']==0) echo "selected='selected'"; ?>>Disabled</option> |
|
203 |
<option value="0" <?php if($module['serviceBPM']==0) echo "selected='selected'"; ?>>Disabled</option> |
| 204 |
</select> </td> |
= |
204 |
</select> </td> |
| 205 |
<td valign="top" class="tdText"><select name="module[BPMSize]"> |
|
205 |
<td valign="top" class="tdText"><select name="module[BPMSize]"> |
| 206 |
<option value="REGULAR" <?php if($module['BPMSize']=="REGULAR") echo "selected='selected'"; ?>>Regular</option> |
|
206 |
<option value="REGULAR" <?php if($module['BPMSize']=="REGULAR") echo "selected='selected'"; ?>>Regular</option> |
| 207 |
<option value="LARGE" <?php if($module['BPMSize']=="LARGE") echo "selected='selected'"; ?>>Large</option> |
|
207 |
<option value="LARGE" <?php if($module['BPMSize']=="LARGE") echo "selected='selected'"; ?>>Large</option> |
| 208 |
</select></td> |
|
208 |
</select></td> |
| 209 |
<td valign="top" class="tdText">N/A</td> |
|
209 |
<td valign="top" class="tdText">N/A</td> |
| 210 |
<td valign="top" class="tdText">15 lbs.</td> |
|
210 |
<td valign="top" class="tdText">15 lbs.</td> |
| 211 |
</tr> |
|
211 |
</tr> |
| 212 |
<tr> |
|
212 |
<tr> |
| 213 |
<td class="tdText">Library</td> |
|
213 |
<td class="tdText">Library</td> |
| 214 |
<td valign="top" class="tdText"> |
|
214 |
<td valign="top" class="tdText"> |
| 215 |
<select name="module[service_Library]"> |
<> |
215 |
<select name="module[serviceLibrary]"> |
| 216 |
<option value="1" <?php if($module['service_Library']==1) echo "selected='selected'"; ?>>Enabled</option> |
|
216 |
<option value="1" <?php if($module['serviceLibrary']==1) echo "selected='selected'"; ?>>Enabled</option> |
| 217 |
<option value="0" <?php if($module['service_Library']==0) echo "selected='selected'"; ?>>Disabled</option> |
|
217 |
<option value="0" <?php if($module['serviceLibrary']==0) echo "selected='selected'"; ?>>Disabled</option> |
| 218 |
</select> </td> |
= |
218 |
</select> </td> |
| 219 |
<td valign="top" class="tdText"><select name="module[LibrarySize]"> |
|
219 |
<td valign="top" class="tdText"><select name="module[LibrarySize]"> |
| 220 |
<option value="REGULAR" <?php if($module['LibrarySize']=="REGULAR") echo "selected='selected'"; ?>>Regular</option> |
|
220 |
<option value="REGULAR" <?php if($module['LibrarySize']=="REGULAR") echo "selected='selected'"; ?>>Regular</option> |
| 221 |
<option value="LARGE" <?php if($module['LibrarySize']=="LARGE") echo "selected='selected'"; ?>>Large</option> |
|
221 |
<option value="LARGE" <?php if($module['LibrarySize']=="LARGE") echo "selected='selected'"; ?>>Large</option> |
| 222 |
</select></td> |
|
222 |
</select></td> |
| 223 |
<td valign="top" class="tdText">N/A</td> |
|
223 |
<td valign="top" class="tdText">N/A</td> |
| 224 |
<td valign="top" class="tdText">70 lbs.</td> |
|
224 |
<td valign="top" class="tdText">70 lbs.</td> |
| 225 |
</tr> |
|
225 |
</tr> |
| 226 |
<tr> |
|
226 |
<tr> |
| 227 |
<td class="tdText">Media</td> |
|
227 |
<td class="tdText">Media</td> |
| 228 |
<td valign="top" class="tdText"> |
|
228 |
<td valign="top" class="tdText"> |
| 229 |
|
|
229 |
|
| 230 |
<select name="module[service_Media]"> |
<> |
230 |
<select name="module[serviceMedia]"> |
| 231 |
<option value="1" <?php if($module['service_Media']==1) echo "selected='selected'"; ?>>Enabled</option> |
|
231 |
<option value="1" <?php if($module['serviceMedia']==1) echo "selected='selected'"; ?>>Enabled</option> |
| 232 |
<option value="0" <?php if($module['service_Media']==0) echo "selected='selected'"; ?>>Disabled</option> |
|
232 |
<option value="0" <?php if($module['serviceMedia']==0) echo "selected='selected'"; ?>>Disabled</option> |
| 233 |
</select> </td> |
= |
233 |
</select> </td> |
| 234 |
<td valign="top" class="tdText"><select name="module[MediaSize]"> |
|
234 |
<td valign="top" class="tdText"><select name="module[MediaSize]"> |
| 235 |
<option value="REGULAR" <?php if($module['MediaSize']=="REGULAR") echo "selected='selected'"; ?>>Regular</option> |
|
235 |
<option value="REGULAR" <?php if($module['MediaSize']=="REGULAR") echo "selected='selected'"; ?>>Regular</option> |
| 236 |
<option value="LARGE" <?php if($module['MediaSize']=="LARGE") echo "selected='selected'"; ?>>Large</option> |
|
236 |
<option value="LARGE" <?php if($module['MediaSize']=="LARGE") echo "selected='selected'"; ?>>Large</option> |
| 237 |
</select></td> |
|
237 |
</select></td> |
| 238 |
<td valign="top" class="tdText">N/A</td> |
|
238 |
<td valign="top" class="tdText">N/A</td> |
| 239 |
<td valign="top" class="tdText">70 lbs.</td> |
|
239 |
<td valign="top" class="tdText">70 lbs.</td> |
| 240 |
</tr> |
|
240 |
</tr> |
| 241 |
<tr> |
|
241 |
<tr> |
| 242 |
<td class="tdText"><strong>Origin Zip Code:</strong><br /> </td> |
|
242 |
<td class="tdText"><strong>Origin Zip Code:</strong><br /> </td> |
| 243 |
<td valign="top" class="tdText"> |
|
243 |
<td valign="top" class="tdText"> |
| 244 |
<input type="text" name="module[zip_origin]" value="<?php echo $module['zip_origin']; ?>" class="textbox" /> </td> |
<> |
244 |
<input type="text" name="module[ziporigin]" value="<?php echo $module['ziporigin']; ?>" class="textbox" /> </td> |
| 245 |
<td valign="top" class="tdText"> </td> |
= |
245 |
<td valign="top" class="tdText"> </td> |
| 246 |
<td valign="top" class="tdText"> </td> |
|
246 |
<td valign="top" class="tdText"> </td> |
| 247 |
<td valign="top" class="tdText"> </td> |
|
247 |
<td valign="top" class="tdText"> </td> |
| 248 |
</tr> |
|
248 |
</tr> |
| 249 |
<tr> |
|
249 |
<tr> |
| 250 |
<td class="tdText"><strong>USPS Username:</strong><br /> </td> |
|
250 |
<td class="tdText"><strong>USPS Username:</strong><br /> </td> |
| 71 |
} |
= |
71 |
} |
| 72 |
|
|
72 |
|
| 73 |
} |
|
73 |
} |
| 74 |
|
|
74 |
|
| 75 |
foreach($module as $moduleKey => $moduleValue){ |
|
75 |
foreach($module as $moduleKey => $moduleValue){ |
| 76 |
|
|
76 |
|
| 77 |
if(ereg("service_",$moduleKey) && $moduleValue==1){ |
<> |
77 |
if(ereg("service",$moduleKey) && $moduleValue==1){ |
| 78 |
|
= |
78 |
|
| 79 |
$moduleKey = str_replace("service_","",$moduleKey); |
<> |
79 |
$moduleKey = str_replace("service","",$moduleKey); |
| 80 |
|
= |
80 |
|
| 81 |
// only proceed if module is enabled |
|
81 |
// only proceed if module is enabled |
| 82 |
if($module["service_".$moduleKey]==1){ |
<> |
82 |
if($module["service".$moduleKey]==1){ |
| 83 |
|
= |
83 |
|
| 84 |
switch($moduleKey) { |
|
84 |
switch($moduleKey) { |
| 85 |
|
|
85 |
|
| 86 |
case "Express": |
|
86 |
case "Express": |
| 87 |
$package = array( |
|
87 |
$package = array( |
| 88 |
'zip_origin' => $module['zip_origin'], |
<> |
88 |
'zip_origin' => $module['ziporigin'], |
| 89 |
'zip_dest' => $zip_dest, |
= |
89 |
'zip_dest' => $zip_dest, |
| 90 |
'pounds' => $lbs, |
|
90 |
'pounds' => $lbs, |
| 91 |
'ounces' => $oz, |
|
91 |
'ounces' => $oz, |
| 92 |
'service' => 'EXPRESS', |
|
92 |
'service' => 'EXPRESS', |
| 93 |
'size' => $module['expressSize'], |
|
93 |
'size' => $module['expressSize'], |
| 94 |
'container' => $module['expressContainer'], |
|
94 |
'container' => $module['expressContainer'], |
| |
| 97 |
); |
= |
97 |
); |
| 98 |
$overWeight = overWeight(70); |
|
98 |
$overWeight = overWeight(70); |
| 99 |
break; |
|
99 |
break; |
| 100 |
|
|
100 |
|
| 101 |
case "FirstClass": |
|
101 |
case "FirstClass": |
| 102 |
$package = array( |
|
102 |
$package = array( |
| 103 |
'zip_origin' => $module['zip_origin'], |
<> |
103 |
'zip_origin' => $module['ziporigin'], |
| 104 |
'zip_dest' => $zip_dest, |
= |
104 |
'zip_dest' => $zip_dest, |
| 105 |
'pounds' => $lbs, |
|
105 |
'pounds' => $lbs, |
| 106 |
'ounces' => $oz, |
|
106 |
'ounces' => $oz, |
| 107 |
'service' => 'FIRST CLASS', |
|
107 |
'service' => 'FIRST CLASS', |
| 108 |
'size' => $module['FirstClassSize'], |
|
108 |
'size' => $module['FirstClassSize'], |
| 109 |
'country' => $countryName, |
|
109 |
'country' => $countryName, |
| |
| 111 |
); |
= |
111 |
); |
| 112 |
$overWeight = overWeight(0.812); |
|
112 |
$overWeight = overWeight(0.812); |
| 113 |
break; |
|
113 |
break; |
| 114 |
|
|
114 |
|
| 115 |
case "Priority": |
|
115 |
case "Priority": |
| 116 |
$package = array( |
|
116 |
$package = array( |
| 117 |
'zip_origin' => $module['zip_origin'], |
<> |
117 |
'zip_origin' => $module['ziporigin'], |
| 118 |
'zip_dest' => $zip_dest, |
= |
118 |
'zip_dest' => $zip_dest, |
| 119 |
'pounds' => $lbs, |
|
119 |
'pounds' => $lbs, |
| 120 |
'ounces' => $oz, |
|
120 |
'ounces' => $oz, |
| 121 |
'service' => 'PRIORITY', |
|
121 |
'service' => 'PRIORITY', |
| 122 |
'size' => $module['prioritySize'], |
|
122 |
'size' => $module['prioritySize'], |
| 123 |
'container' => $module['priorityContainer'], |
|
123 |
'container' => $module['priorityContainer'], |
| 124 |
'country' => $countryName, |
|
124 |
'country' => $countryName, |
| 125 |
'mail_type' => "Package" |
|
125 |
'mail_type' => "Package" |
| 126 |
); |
|
126 |
); |
| 127 |
$overWeight = overWeight(70); |
|
127 |
$overWeight = overWeight(70); |
| 128 |
break; |
|
128 |
break; |
| 129 |
|
|
129 |
|
| 130 |
case "Parcel-M": |
<> |
130 |
case "ParcelM": |
| 131 |
$package = array( |
= |
131 |
$package = array( |
| 132 |
'zip_origin' => $module['zip_origin'], |
<> |
132 |
'zip_origin' => $module['ziporigin'], |
| 133 |
'zip_dest' => $zip_dest, |
= |
133 |
'zip_dest' => $zip_dest, |
| 134 |
'pounds' => $lbs, |
|
134 |
'pounds' => $lbs, |
| 135 |
'ounces' => $oz, |
|
135 |
'ounces' => $oz, |
| 136 |
'service' => 'PARCEL', |
|
136 |
'service' => 'PARCEL', |
| 137 |
'size' => $module['parcel-MSize'], |
<> |
137 |
'size' => $module['parcelMSize'], |
| 138 |
'machinable' => 'TRUE', |
= |
138 |
'machinable' => 'TRUE', |
| 139 |
'country' => $countryName, |
|
139 |
'country' => $countryName, |
| 140 |
'mail_type' => "Package" |
|
140 |
'mail_type' => "Package" |
| 141 |
); |
|
141 |
); |
| 142 |
$overWeight = overWeight(70); |
|
142 |
$overWeight = overWeight(70); |
| 143 |
break; |
|
143 |
break; |
| 144 |
|
|
144 |
|
| 145 |
case "Parcel-NM": |
<> |
145 |
case "ParcelNM": |
| 146 |
$package = array( |
= |
146 |
$package = array( |
| 147 |
'zip_origin' => $module['zip_origin'], |
<> |
147 |
'zip_origin' => $module['ziporigin'], |
| 148 |
'zip_dest' => $zip_dest, |
= |
148 |
'zip_dest' => $zip_dest, |
| 149 |
'pounds' => $lbs, |
|
149 |
'pounds' => $lbs, |
| 150 |
'ounces' => $oz, |
|
150 |
'ounces' => $oz, |
| 151 |
'service' => 'PARCEL', |
|
151 |
'service' => 'PARCEL', |
| 152 |
'size' => $module['parcel-NMSize'], |
<> |
152 |
'size' => $module['parcelNMSize'], |
| 153 |
'machinable' => 'FALSE', |
= |
153 |
'machinable' => 'FALSE', |
| 154 |
'country' => $countryName, |
|
154 |
'country' => $countryName, |
| 155 |
'mail_type' => "Package" |
|
155 |
'mail_type' => "Package" |
| 156 |
); |
|
156 |
); |
| 157 |
$overWeight = overWeight(70); |
|
157 |
$overWeight = overWeight(70); |
| 158 |
break; |
|
158 |
break; |
| 159 |
|
|
159 |
|
| 160 |
case "BPM": |
|
160 |
case "BPM": |
| 161 |
$package = array( |
|
161 |
$package = array( |
| 162 |
'zip_origin' => $module['zip_origin'], |
<> |
162 |
'zip_origin' => $module['ziporigin'], |
| 163 |
'zip_dest' => $zip_dest, |
= |
163 |
'zip_dest' => $zip_dest, |
| 164 |
'pounds' => $lbs, |
|
164 |
'pounds' => $lbs, |
| 165 |
'ounces' => $oz, |
|
165 |
'ounces' => $oz, |
| 166 |
'service' => 'BPM', |
|
166 |
'service' => 'BPM', |
| 167 |
'size' => $module['BPMSize'], |
|
167 |
'size' => $module['BPMSize'], |
| 168 |
'country' => $countryName, |
|
168 |
'country' => $countryName, |
| |
| 170 |
); |
= |
170 |
); |
| 171 |
$overWeight = overWeight(15); |
|
171 |
$overWeight = overWeight(15); |
| 172 |
break; |
|
172 |
break; |
| 173 |
|
|
173 |
|
| 174 |
case "Library": |
|
174 |
case "Library": |
| 175 |
$package = array( |
|
175 |
$package = array( |
| 176 |
'zip_origin' => $module['zip_origin'], |
<> |
176 |
'zip_origin' => $module['ziporigin'], |
| 177 |
'zip_dest' => $zip_dest, |
= |
177 |
'zip_dest' => $zip_dest, |
| 178 |
'pounds' => $lbs, |
|
178 |
'pounds' => $lbs, |
| 179 |
'ounces' => $oz, |
|
179 |
'ounces' => $oz, |
| 180 |
'service' => 'LIBRARY', |
|
180 |
'service' => 'LIBRARY', |
| 181 |
'size' => $module['LibrarySize'], |
|
181 |
'size' => $module['LibrarySize'], |
| 182 |
'country' => $countryName, |
|
182 |
'country' => $countryName, |
| |
| 184 |
); |
= |
184 |
); |
| 185 |
$overWeight = overWeight(70); |
|
185 |
$overWeight = overWeight(70); |
| 186 |
break; |
|
186 |
break; |
| 187 |
|
|
187 |
|
| 188 |
case "Media": |
|
188 |
case "Media": |
| 189 |
$package = array( |
|
189 |
$package = array( |
| 190 |
'zip_origin' => $module['zip_origin'], |
<> |
190 |
'zip_origin' => $module['ziporigin'], |
| 191 |
'zip_dest' => $zip_dest, |
= |
191 |
'zip_dest' => $zip_dest, |
| 192 |
'pounds' => $lbs, |
|
192 |
'pounds' => $lbs, |
| 193 |
'ounces' => $oz, |
|
193 |
'ounces' => $oz, |
| 194 |
'service' => 'MEDIA', |
|
194 |
'service' => 'MEDIA', |
| 195 |
'size' => $module['MediaSize'], |
|
195 |
'size' => $module['MediaSize'], |
| 196 |
'country' => $countryName, |
|
196 |
'country' => $countryName, |
| 47 |
if( (isset($_GET['lang'])) && (!empty($_GET['lang'])) && (isset($_SESSION['ccUser'])) ){ |
= |
47 |
if( (isset($_GET['lang'])) && (!empty($_GET['lang'])) && (isset($_SESSION['ccUser'])) ){ |
| 48 |
$sessData['lang'] = "'".preg_replace('/[^a-zA-Z0-9_\-\+]/', '',$_GET['lang'])."'"; |
|
48 |
$sessData['lang'] = "'".preg_replace('/[^a-zA-Z0-9_\-\+]/', '',$_GET['lang'])."'"; |
| 49 |
$update = $db->update($glob['dbprefix']."CubeCart_sessions", $sessData,"sessId=".$db->mySQLSafe($_SESSION['ccUser'])); |
|
49 |
$update = $db->update($glob['dbprefix']."CubeCart_sessions", $sessData,"sessId=".$db->mySQLSafe($_SESSION['ccUser'])); |
| 50 |
|
|
50 |
|
| 51 |
// detect possible spoofing URL's |
|
51 |
// detect possible spoofing URL's |
| 52 |
if(!eregi("http://",$_GET['r']) && !eregi("ftp://",$_GET['r']) && !eregi("https://",$_GET['r'])){ |
|
52 |
if(!eregi("http://",$_GET['r']) && !eregi("ftp://",$_GET['r']) && !eregi("https://",$_GET['r'])){ |
| 53 |
header("Location: ".str_replace("&","&",treatGet($_GET['r']))); |
<> |
53 |
header("Location: ".str_replace("amp;","",treatGet($_GET['r']))); |
| 54 |
} else { |
= |
54 |
} else { |
| 55 |
header("Location: index.php"); |
|
55 |
header("Location: index.php"); |
| 56 |
} |
|
56 |
} |
| 57 |
exit; |
|
57 |
exit; |
| 58 |
|
|
58 |
|
| 59 |
} elseif((isset($_GET['currency'])) && !empty($_GET['currency']) && (isset($_SESSION['ccUser']))){ |
|
59 |
} elseif((isset($_GET['currency'])) && !empty($_GET['currency']) && (isset($_SESSION['ccUser']))){ |
| 60 |
|
|
60 |
|
| 61 |
$sessData['currency'] = "'".preg_replace('/[^a-zA-Z0-9_\-\+]/', '',$_GET['currency'])."'"; |
|
61 |
$sessData['currency'] = "'".preg_replace('/[^a-zA-Z0-9_\-\+]/', '',$_GET['currency'])."'"; |
| 62 |
$update = $db->update($glob['dbprefix']."CubeCart_sessions", $sessData,"sessId=".$db->mySQLSafe($_SESSION['ccUser'])); |
|
62 |
$update = $db->update($glob['dbprefix']."CubeCart_sessions", $sessData,"sessId=".$db->mySQLSafe($_SESSION['ccUser'])); |
| 63 |
|
|
63 |
|
| 64 |
// detect possible spoofing URL's |
|
64 |
// detect possible spoofing URL's |
| 65 |
if(!eregi("http://",$_GET['r']) && !eregi("ftp://",$_GET['r']) && !eregi("https://",$_GET['r'])){ |
|
65 |
if(!eregi("http://",$_GET['r']) && !eregi("ftp://",$_GET['r']) && !eregi("https://",$_GET['r'])){ |
| 66 |
header("Location: ".str_replace("&","&",treatGet($_GET['r']))); |
<> |
66 |
header("Location: ".str_replace("amp;","",treatGet($_GET['r']))); |
| 67 |
} else { |
= |
67 |
} else { |
| 68 |
header("Location: index.php"); |
|
68 |
header("Location: index.php"); |
| 69 |
} |
|
69 |
} |
| 70 |
exit; |
|
70 |
exit; |
| 71 |
|
|
71 |
|
| 72 |
} else { |
|
72 |
} else { |
| 73 |
header("Location: index.php"); |
|
73 |
header("Location: index.php"); |
| 74 |
exit; |
|
74 |
exit; |
| 75 |
} |
|
75 |
} |
| 76 |
?> |
|
76 |
?> |